package com.example.trafficsystem.repository;

import com.example.trafficsystem.entity.Task;
import com.example.trafficsystem.entity.TrainingDocument;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface TaskRe extends JpaRepository<Task, Long>, JpaSpecificationExecutor<Task> {

    List<Task> findAllByTrainingPlanId(Long trainingPlanId);

    List<Task> findByTrainingPlanId(Long trainingPlanId);
}
